﻿using System;
using System.Collections.Generic;


namespace YummyGame.Framework
{
    public class SkillRootPrototype : SkillActionPrototype
    {
        public List<SkillActionPrototype> m_actions;

        public SkillRootPrototype()
        {
            m_actions = new List<SkillActionPrototype>();
        }

        public void AddChild(SkillActionPrototype child)
        {
            m_actions.Add(child);
        }

        protected override SkillAction GetRuntimeInternal()
        {
            return Pools.GetSkillRuntime<SkillRootAction>().Get();
        }
    }
}
